﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace childcare
{
    public partial class frmguest : Form
    {
        public frmguest()
        {
            InitializeComponent();
        }

        private void btnchildren_Click(object sender, EventArgs e)
        {
            connectdatabase.Openconnect();
            frmchildren _frmchildren = new frmchildren();
            _frmchildren.Show();
            Hide();
        }

        private void btnthoat_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có chắc chắn muốn thoát ?", "THOÁT", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                login _frmlogin = new login();
                _frmlogin.Show();
                this.Close();
            }
        }

        private void frmguest_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            frmhocphi _frmhocphi = new frmhocphi();
            _frmhocphi.Show();
            this.Hide();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            frmlop _frmlop = new frmlop();
            _frmlop.Show();
            this.Hide();
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            frmbaocao _frmbc = new frmbaocao();
            _frmbc.Show();

        }

        private void btnbaocao_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmbaocao _frm = new frmbaocao();
            _frm.Show();

        }
    }
}
